import Vue from 'vue';
import Vuex from 'vuex';

import userLogin from './module/user_login/index';
import customers from './module/customer/index.js'; 
import salesCategory from './module/sales-category/index';
import product from './module/product/index';
import loading from './module/loading/index';
import unreadNews from './module/unread-news/index';
import powerSetting from './module/power-setting/index';
import userControl from './module/user-control/index';
import leftMenu from './module/left-menu/index';
import report from './module/report/index';
import calendar from './module/calendar/index';
import template from './module/template/index';
import telManagement from './module/tel-management/index';
import searchFilter from './module/search-filter/index';
import seller from './module/seller/index.js';
import keyword from './module/keyword/index.js';
import brandadmins from './module/brandadmin/index.js';
import warning from './module/warning/index';
import rights from './module/rights/index';
import complaintlists from './module/complaintlist/index.js';
import messageLogs from './module/messageLog/index.js';
import btocShop from './module/btoc-shop/index.js';
import promotionLink from './module/promotionLink/index';
import manlist from './module/formman/index.js';

import b2cProducts from './module/b2c-products/index.js';
import b2cOrders from './module/b2c-orders/index.js';

import informs from './module/inform/index.js';
import userStatistics from './module/userStatistics/index.js';

Vue.use(Vuex);
const debug = process.env.NODE_ENV !== 'production';

export default new Vuex.Store({
    modules: {
        userLogin,
        customers,
        brandadmins,
        complaintlists,
        messageLogs,
        product,
        salesCategory,
        loading,
        unreadNews,
        powerSetting,
        userControl,
        leftMenu,
        report,
        calendar,
        template,
        telManagement,
        searchFilter,
        seller,
        keyword,
        warning,
        rights,
        btocShop,
        promotionLink,
        manlist,
        b2cProducts,
        b2cOrders,
        informs,
        userStatistics
    },
strict: false
});